#!/usr/bin/python
# -*- coding: utf-8 -*-

import time
import threading
from GUI import settings #GUI папка для Django морды
from django.core.management  import setup_environ     #environment setup function
setup_environ(settings)



from libs.django import *
#from libs.tw_serial import *
from libs.arduino import *
from libs.android import *



#android=android_websocket(autostart=True)
#arduino=arduino_serial(autostart=True)




android=sock_serv()
#time.sleep(10)




#django=DjangoServer(autostart=True)







#time.sleep(4)
#print android.factory.protocol.received
#time.sleep(4)
#time.sleep(10)
##print arduino
##c=100
##while c>0:
#    #print arduino.serial_class.received
#    #print android.factory.protocol.received
#    #c-=1






